package fuckTest.testMap;

import org.springframework.util.ObjectUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author senselyan
 * @Description: ${todo}
 * @date 2018/4/28 17:06
 */
public class Demo2 {
    public static void main(String[] args) {

        Map<String, Integer> result = new HashMap<>();

        result.put("liy", 2);
        result.put("liyan", 5);
        result.put("zhining", 4);

        if (ObjectUtils.isEmpty(result.get("ssnly"))) {
            result.put("senly", 100);
        }
        if (!ObjectUtils.isEmpty(result.get("liyan"))) {
            result.put("liyan", result.get("liyan") + 200);
        }

        System.out.println(result.toString());


    }
}
